package orm.inf;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import bean.entity.Account;

public interface AccountMapper {
	@Update("update account set balance = #{balance) where aid = #{aid}")
	Boolean updateBalance(Account acc);
	
	@Select("select * from account where uid = #{uid}")
	Account selectUid (@Param("uid") String uid) ;
	
	@Insert("insert into account values (#{aid} , #{uid} , #{balance})")
	Boolean insertAccount(Account account);
}